﻿using System;
using System.Collections.Specialized;
using System.Diagnostics;
using System.IO;

namespace API.Cryptsy
{
    public partial class Cryptsy
    {
        private readonly string _debugOutputPath = @"C:\Temp";

        [Conditional("DEBUG")]
        [DebuggerStepThrough]
        private void SaveDebugInformation(NameValueCollection args, string json)
        {
            string querystring = ToQueryString(args);
            string fileName = Path.Combine(_debugOutputPath, String.Format("{0}.trace", querystring));

            using (StreamWriter sw = new StreamWriter(fileName))
                sw.Write(json);
        }

    }
}
